package com.itqian.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author shishuqian
 * date 2022/1/12
 * time 20:06
 **/
@AllArgsConstructor
@Getter
public enum  ResponseEnum {
    USERNAME_NULL(300,"用户不存在..."),
    PASSWORD_ERROR(301,"密码错误..."),
    USER_REGISTERED(302,"注册失败，该用户名已被注册..."),
    PARAM_NOTNULL(303,"参数不能为空..."),
    LOGIN_ERROR(304,"登录信息失效..."),
    USER_NO_ROLE(305,"用户没有此身份权限..."),
    PAGE_NOTNULL(306,"page参数不能为空"),
    SIZE_NOTNULL(307,"size参数不能为空"),
    TYPE_NOTNULL(308,"查询类型参数不能为空"),
    KEYWORD_NOTNULL(309,"查询关键字不能为空"),
    TYPE_NO_SUPPORT(310,"类型不支持"),
    SMS_SEND_FAIL(311,"验证码发送失败..."),
    PHONE_ERROR(312,"手机号格式错误...");

    private Integer code;
    private String msg;
}
